from base.mybase import Tools


class delete_model(Tools):
    # 定义路径
    path = '/task/info'

    # 发送创建任务接口
    def delete_action(self, task_id, hd):
        delete_data = {
            "task_id": task_id
        }
        delete = self.huihua.delete(url=self.hosturl+self.path, data=delete_data, headers=hd)
        return delete.json()